-- GENERATED SPELL FOR [Anguished Dead] --


function spell0_6426(pUnit, Event) --@Veil of Shadow,Heal--
pUnit:FullCastSpellOnTarget(7068,pUnit)
pUnit:RegisterEvent('Sorts_6426', 16500, 1)
end

function Sorts_6426(pUnit, Event)
local choix_sorts_6426 = math.random(0, 0)
if choix_sorts_6426 == 0 then
pUnit:RegisterEvent('spell0_6426', 1, 1)
end
end

function mob6426_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6426', math.random(1500, 3000), 1)
end

function mob6426_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6426_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6426_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6426, 1, 'mob6426_Action')
RegisterUnitEvent(6426, 2, 'mob6426_Leave')
RegisterUnitEvent(6426, 3, 'mob6426_Kill')
RegisterUnitEvent(6426, 4, 'mob6426_Die')
